package cn.edu.zjut.app;

import cn.edu.zjut.po.Customer;
import cn.edu.zjut.service.IUserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author XiaoFeng
 * @version 1.0
 * @Description Create by 2021/12/6 14:49
 */

public class SpringEnvTest {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        IUserService userService = (IUserService)ctx.getBean("logProxy");
        Customer customer = new Customer();
        customer.setAccount("SPRING1");
        customer.setPassword("SPRING1");
        userService.addUser(customer);
    }

}
